package com.wanhe.base.presents;

import android.app.Activity;
import android.content.Context;


import com.wanhe.base.net.ServerApi;
import com.wanhe.base.runner.Runner;
import com.wanhe.base.websocket.WebSocketTool;

import javax.inject.Inject;

/**
 * Created by yanchx on 2017/6/28.
 */

public class BasePresenter {
    protected ServerApi api;
    protected Runner runner;
//    protected WebSocketTool webSocketTool;

    //    protected Context context;
//    @Inject
//    public BasePresenter(WebSocketTool webSocketTool) {
//        this.webSocketTool = webSocketTool;
//    }

    @Inject
    public BasePresenter(ServerApi api, Runner runner) {
        this.api = api;
        this.runner = runner;
    }

//    @Inject
//    public BasePresenter(ServerApi api, Runner runner, WebSocketTool webSocketTool) {
//        this.api = api;
//        this.runner = runner;
//        this.webSocketTool = webSocketTool;
//    }

    protected void onPause() {
    }

    protected void onResume() {
    }

    protected void onDestroy() {
    }
}
